package Lab02.test02;

/**
 * Created by Administrator on 2017/10/12.
 */
    public class Circle {
        //属性：半径
        double radius;
        //行为：圆的面积与周长
        //计算面积
        double area(){
            return 3.14 * radius * radius;
        }
        //计算周长
        double perimeter(){
            return 2 * 3.14 * radius;
        }

    }